public class VariableTest {
    public static void main(String[] args) {
        short s = 12;
        int i = 120;
        long l = 122313211L;  // L结尾
        char c = 'a';
        boolean b = true;
        float f = 12.64F;   //F结尾
        double d = 12.445545;
        System.out.println(s);
        System.out.println(i);
        System.out.println(l);
        System.out.println(c);
        System.out.println(b);
        System.out.println(f);
        System.out.println(d);
        System.out.println("\u0034");  //根据Unicode编码
        System.out.println(i = 10); //先赋值，后输出
    }
}
